$(function () {
    let toggleModal = document.getElementById("toggleModal");
    let mask = document.getElementsByClassName("mask")[0];
    let modal = document.getElementsByClassName("modal")[0];
    let closes = document.getElementsByClassName("close");
    toggleModal.onclick = show;
    closes[0].onclick = close;
    closes[1].onclick = close;
    function show(){
        mask.style.display = "block";
        modal.style.display = "block";
    }
    function close(){
        mask.style.display = "none";
        modal.style.display = "none";
    }
})